package com.test.helloworld.bean;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/9/7 11:25
 */
@Data
@NoArgsConstructor
public class Product {
    private Long id;
    private String productName;
    private String productDesc;
    private double productPrice;

    public Product(String productName, String productDesc, double productPrice) {
        this.productName = productName;
        this.productDesc = productDesc;
        this.productPrice = productPrice;
    }

    public String save() {
        System.out.println("save:" + this.toString());
        return "details";
    }
}
